
public class StringQuery {

	public static void main(String[] args) {
	
		StringBuffer stringBuffer = new StringBuffer();
		String GradeRef = "G1";
		
		switch(GradeRef)
		{
		case "G1": 
		System.out.println(" Grade G1 Employee has following benefits : \n" );
		stringBuffer.append(" HealthInsurance \n");
		stringBuffer.append(" Salary = $ 5000 \n");
		stringBuffer.append(" Child Care \n");
		stringBuffer.append(" Paid Holidays \n");
		stringBuffer.append(" Dental Care \n");
		System.out.println(stringBuffer.toString());
		break;
		
		case "G2": 
		System.out.println(" Grade G2 Employee has following benefits : \n" );
		stringBuffer.append(" HealthInsurance \n");
		stringBuffer.append(" Salary = $ 4500 \n");
		stringBuffer.append(" Child Care \n");
		stringBuffer.append(" Paid Holidays \n");
		System.out.println(stringBuffer.toString());
		break;
		
		case "G3": 
		System.out.println(" Grade G3 Employee has following benefits : \n" );
		stringBuffer.append(" HealthInsurance \n");
		stringBuffer.append(" Salary = $ 4000 \n");
		stringBuffer.append(" Child Care \n");
		System.out.println(stringBuffer.toString());
		break;
				
		case "G4": 
		System.out.println(" Grade G4 Employee has following benefits : \n" );
		stringBuffer.append(" HealthInsurance \n");
		stringBuffer.append(" Salary = $ 3500 \n");
		System.out.println(stringBuffer.toString());
		break;
		
		default : System.out.println(" Invalid Grade entered ");
		break;
		}
		
	}

}
